package com.bilibili.servlet;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.bilibili.service.UserService;
import com.bilibili.service.impl.UserServiceImpl;

@WebServlet("/reupdateUId.do")
public class ReupdateUIdServlet extends HttpServlet {
	UserService us = new UserServiceImpl();
	protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		
	}

	
	protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
		String userId = request.getParameter("userId");
		int user_id=Integer.parseInt(userId);
		us.reupdateByUId(user_id);
	}

}
